package com.example.zlpermissionservice.dto.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author zhenliu（孙凌岳）
 * @Description AI生成 - 资源树资源树结构体
 * @Date 2025/6/17 11:14
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class TreeItemResDTO implements Serializable {
    @ApiModelProperty(value = "节点ID")
    public String id;

    @ApiModelProperty(value = "显示内容")
    public String label;

    @ApiModelProperty(value = "显示内容")
    public List<TreeItemResDTO> children = new ArrayList<>();

    @Builder
    public TreeItemResDTO(String id, String label, List<TreeItemResDTO> children) {
        this.id = id;
        this.label = label;
        this.children = children;
    }
}
